package com.ehotting.eaf.core.domain.csharpServer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("license扩展参数LicenseSignedDto")
public class LicenseSignedDto extends LicenseApplyVo {

    /**
     * 起始时间
     */
    @ApiModelProperty("起始时间")
    private String startTimeStr;

    /**
     * 失效时间
     */
    @ApiModelProperty("失效时间")
    private String expiredTimeStr;

    /**
     * 加密后的密钥
     */
//    @ApiModelProperty("加密后的密钥")
    //    private String aesEncryptedKey;

    /**
     * RSA公钥字符串
     */
    @ApiModelProperty("RSA公钥字符串")
    private String rsaPuk;

    /**
     * 签名的密文
     */
    @ApiModelProperty("签名")
    private String sign;

    @Override
    public String toString() {
        return "{" +
                "licenseType:'" + licenseType
                + "', appName:'" + appName
                + "', appVersion:'" + appVersion
                + "', mcBoard:'" + mcBoard
                + "', mcCpu:'" + mcCpu
                + "', mcMac:'" + mcMac
                + "', startTimeStr:'" + startTimeStr
                + "', expiredTimeStr:'" + expiredTimeStr
                + "', features:'" + features
                + "', rsaPuk:'" + rsaPuk + "'"
                + '}';
    }
}
